Fix missing scenario clone

Thiago Talma 9 years ago
parent
commit
c668e28f49
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/agent.rb

+ 1 - 1
app/models/agent.rb

@@ -301,7 +301,7 @@ class Agent < ActiveRecord::Base
301 301
   class << self
302 302
     def build_clone(original)
303 303
       new(original.slice(:type, :options, :schedule, :controller_ids, :control_target_ids,
304
-                         :source_ids, :keep_events_for, :propagate_immediately)) { |clone|
304
+                         :source_ids, :keep_events_for, :propagate_immediately, :scenario_ids)) { |clone|
305 305
         # Give it a unique name
306 306
         2.upto(count) do |i|
307 307
           name = '%s (%d)' % [original.name, i]